import {API} from "@/api/NewAxiosAPI";
import type {ResponseInterface} from "@/type/models";

const APi = API;

export async function getNoteInfoById(id: string, token: string) {
    const r: ResponseInterface = await API({
        url: "/note/info",
        method: "GET",
        headers: {
            Authorization: token
        },
        params: {
            noteId: id
        }
    })
    return r.data;
}